<?php


namespace app\admin\model;


class Role extends BaseModel
{
    public function permissions()
    {
        return $this->belongsToMany('Permission', 'role_permission', 'permission_id', 'role_id');
    }
}